#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <time.h>

#ifndef _APP_STRUCT
#define _APP_STRUCT

typedef unsigned char bool;
typedef unsigned char uint8;
#define true 1
#define false 0

#define APP_DAT_PATH "data/app.dat"
#define PLAN_CSV_PATH "data/plan.csv"
#define TIME_LOG_PATH "data/timelog.dat"
#define DICT_PATH "data/English/"

struct App{
	char Name[20];
	char Path[255];
};

struct EnWord{
	char Word[32];
	int Offset;
};

struct Plan{
    struct time * ptime;
    char detail[128];
    bool warns[8];
};

struct time{
    int year;
    int month;
    int day;
    int hour;
    int minute;
};

time_t nowtime;
struct tm * timeinfo;
struct time *starttime,*CheckSports,*CheckDrink;
bool ShouldSports,ShouldDrink,FirstSports,FirstDrink;

#endif
